package com.example.xiaoyi.weiju.Overing;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.example.xiaoyi.weiju.Activity.RegisterActivity;
import com.example.xiaoyi.weiju.Activity.loginActivity;
import com.example.xiaoyi.weiju.R;


public class ActivityHome extends AppCompatActivity {
private Button button1,button2;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activitymain);
        button1 = (Button)findViewById(R.id.btn_logn);
        button2 = (Button)findViewById(R.id.btn_register);
        button1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ActivityHome.this,loginActivity.class);
                startActivity(intent);
            }
        });
        button2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ActivityHome.this,RegisterActivity.class);
                startActivity(intent);
            }
        });
    }
}
